import React from 'react';
import {Route} from 'react-router';

import {WeaLocaleProvider} from 'ecCom';
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'portal');

import E8Form from './components/index/e8Form';
import E8FormCloud from './components/index/e8FormCloud';

const Routes = [
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@c4x1v3@E8Form`} path="element" onEnter={getLocaleLabel} component={E8Form}/>,
];

module.exports = {
    Route: Routes,
    com: {
        E8Form,
        E8FormCloud
    } ,titles:{
        E8Form: "E8登录元素",
        E8FormCloud: "E8登录元素(新)"
    }

};
